<!doctype html>
<html>
<head>
    <meta charset="UTF-8" />
    <title>个人中心</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" />
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Wx/css/base.css" />
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Wx/css/index.css" />
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Wx/css/detail.css" />
</head>
<body>
<div class="user">
    <div class="userintro">
        <div class="username">
            <div class="name">
                <div class="pic" onClick="window.location='__MODULE__/Authentication/index'"><img src="{$member['avatar']}"/></div>
                <h2>{$member['nickname']}</h2>
                <p>{$member['hometown']}</p>
            </div>
            <div class="change"><a href="__MODULE__/User/change">切换用户</a></div>
        </div>
        <div class="links">
            <a href="<?=U('User/balance')?>"><h3>{$member['credit2']}</h3><p>卡额</p></a>
            <a href="<?=U('User/integration')?>"><h3>{$member['credit1']}</h3><p>积分</p></a>
            <a href="<?=U('User/credit3')?>"><h3>{$member['credit3']}</h3><p>余额</p></a>
            <a href="<?=U('MyCollect/index')?>"><h3>{$collection}</h3><p>收藏</p></a>
        </div>
    </div>
    <div class="orderlink">
        <h2><a href="<?=U('MyGrouporder/index')?>">我的拼团<span>全部订单</span></a></h2>
        <div class="inner">
            <a href="<?=U('MyGrouporder/index',array('type'=>9))?>">
                <div class="pic"><img src="__PUBLIC__/Wx/img/icon-pay.png"/>
                    <if condition="$order0 neq 0">
                        <span>{$order0}</span>
                    </if>
                </div>
                <div class="topic">待付款</div>
            </a>
            <a href="<?=U('MyGrouporder/index',array('type'=>1))?>">
                <div class="pic">
                    <img src="__PUBLIC__/Wx/img/icon09.png"/>
                    <if condition="$order1 neq 0">
                        <span>{$order1}</span>
                    </if>

                </div>
                <div class="topic">待成团</div>
            </a>
            <a href="<?=U('MyGrouporder/index',array('type'=>4))?>">
                <div class="pic"><img src="__PUBLIC__/Wx/img/icon10.png"/>
                    <if condition="$order4 neq 0">
                        <span>{$order4}</span>
                    </if>

                </div>
                <div class="topic">待发货</div>
            </a>
            <a href="<?=U('MyGrouporder/index',array('type'=>6))?>">
                <div class="pic"><img src="__PUBLIC__/Wx/img/icon11.png"/>
                    <if condition="$order6 neq 0">
                        <span>{$order6}</span>
                    </if>
                </div>
                <div class="topic">待核销</div>
            </a>
            <a href="<?=U('MyGrouporder/index',array('type'=>2))?>">
                <div class="pic"><img src="__PUBLIC__/Wx/img/icon12.png"/>
                    <if condition="$order2 neq 0">
                        <span>{$order2}</span>
                    </if>

                </div>
                <div class="topic">待评价</div>
            </a>
        </div>
    </div>
    <div class="orderlink spc">
    	<h2>我的兑换<span onClick="window.location='__MODULE__/UserExchangeorder/index'">全部订单</span></h2>
        <div class="inner">
            <a href="__MODULE__/UserExchangeorder/index/state/0/">
            	<div class="pic"><img src="__PUBLIC__/Wx/img/icon-pay02.png"/><if condition="$dh_order0 neq 0"><span>{$dh_order0}</span></if></div>
                <div class="topic">待付款</div>
            </a>
            <a href="__MODULE__/UserExchangeorder/index/state/1">
            	<div class="pic"><img src="__PUBLIC__/Wx/img/icon24.png"/><if condition="$dh_order1 neq 0"><span>{$dh_order1}</span></if></div>
                <div class="topic">待核销</div>
            </a>
            <a href="__MODULE__/UserExchangeorder/index/state/2">
            	<div class="pic"><img src="__PUBLIC__/Wx/img/icon25.png"/><if condition="$dh_order2 neq 0"><span>{$dh_order2}</span></if></div>
                <div class="topic">已核销</div>
            </a>
            <a href="__MODULE__/UserExchangeorder/index/state/3">
            	<div class="pic"><img src="__PUBLIC__/Wx/img/icon26.png"/>
                    <!--<if condition="$dh_order3 neq 0"><span>{$dh_order3}</span></if>-->
                </div>
                <div class="topic">已评价</div>
            </a>
        </div>
    </div>
    <!--<div class="orderlink spc">-->
        <!--<h2><a href="__MODULE__/ForetasteOrder/index/state/1">试吃试用<span>全部订单</span></a></h2>-->
        <!--<div class="inner">-->
            <!--<a href="__MODULE__/ForetasteOrder/index/state/2">-->
                <!--<div class="pic"><img src="__PUBLIC__/Wx/img/icon28.png"/><if condition="$f_order0 neq 0"><span>{$f_order0}</span></if></div>-->
                <!--<div class="topic">申请中</div>-->
            <!--</a>-->
            <!--<a href="__MODULE__/ForetasteOrder/index/state/3">-->
                <!--<div class="pic"><img src="__PUBLIC__/Wx/img/icon29.png"/><if condition="$f_order1 neq 0"><span>{$f_order1}</span></if></div>-->
                <!--<div class="topic">已发货</div>-->
            <!--</a>-->
            <!--<a href="__MODULE__/ForetasteOrder/index/state/4">-->
                <!--<div class="pic"><img src="__PUBLIC__/Wx/img/icon24.png"/><if condition="$f_order2 neq 0"><span>{$f_order2}</span></if></div>-->
                <!--<div class="topic">待核销</div>-->
            <!--</a>-->
            <!--<a href="__MODULE__/ForetasteOrder/index/state/5">-->
                <!--<div class="pic"><img src="__PUBLIC__/Wx/img/icon26.png"/><if condition="$f_order3 neq 0"><span>{$f_order3}</span></if></div>-->
                <!--<div class="topic">待评价</div>-->
            <!--</a>-->
        <!--</div>-->
    <!--</div>-->
    <div class="orderlink">
        <h2>我的管理<!--<span>全部订单</span>--></h2>
        <div class="inner">
            <a href="<?=U('MyMsg/index')?>" style="width: 33%;">
                <div class="pic"><img src="__PUBLIC__/Wx/img/icon13.png"/>
                    <?=$total_num!=0?'<span>'.$total_num.'</span>':''?>
                </div>
                <div class="topic">我的消息</div>
            </a>
            <a href="<?=U('MyAddress/index')?>" style="width: 33%;">
                <div class="pic"><img src="__PUBLIC__/Wx/img/icon14.png"/></div>
                <div class="topic">我的地址</div>
            </a>
            <!--<a href="<?=U('MySet/index')?>">-->
            <a href="__MODULE__/Authentication/" style="width: 33%;border-right: none;">
                <div class="pic"><img src="__PUBLIC__/Wx/img/icon15.png"/></div>
                <div class="topic">个人设置</div>
            </a>
            <!--<a href="<?=U('WishGroup/index')?>">-->
                <!--<div class="pic"><img src="__PUBLIC__/Wx/img/icon16.png"/></div>-->
                <!--<div class="topic">心愿团</div>-->
            <!--</a>-->
            <!--<a href="__MODULE__/Foretaste/ranking">-->
                <!--<div class="pic"><img src="__PUBLIC__/Wx/img/icon37.png"/></div>-->
                <!--<div class="topic">大使排行</div>-->
            <!--</a>-->
        </div>
    </div>
    <!--<div id="footer">-->
        <!--<a href="<?=U('Index/index')?>">-->
            <!--<div class="pic"><img src="__PUBLIC__/Wx/img/icon-index.png"/></div>-->
            <!--<div class="topic">我的社区</div>-->
        <!--</a>-->
        <!--<a href="http://news.xiangtws.com/Wx/Village/country/adid/{$Think.session.openid}/nickname/{$Think.session.nickname}/">-->
            <!--<div class="pic"><img src="__PUBLIC__/Wx/img/icon-village.png"/></div>-->
            <!--<div class="topic">最美乡村</div>-->
        <!--</a>-->
        <!--<a href="http://news.xiangtws.com/index.php/Wx/Article/stories_ls/">-->
            <!--<div class="pic"><img src="__PUBLIC__/Wx/img/icon-article.png"/></div>-->
            <!--<div class="topic">乡村夜话</div>-->
        <!--</a>-->
        <!--<a href="http://www.xiangtws.com/index.php/Wx/Product/index.html">-->
            <!--<div class="pic"><img src="__PUBLIC__/Wx/img/icon-landmark.png"/></div>-->
            <!--<div class="topic">地标产品</div>-->
        <!--</a>-->
        <!--<a href="javascript:;" class="on">-->
            <!--<div class="pic"><img src="__PUBLIC__/Wx/img/icon-my02.png"/></div>-->
            <!--<div class="topic">会员中心</div>-->
        <!--</a>-->
    <!--</div>-->
    <!--footer-->
    <include file="Public:Old_footer" />
    <!--footer end-->
</div>
<eq name="recommend" value="0">
    <!--检测如果有新的成功拼团或者试吃，且绑定小区无店铺-->
    <div class="hint03" style="display:block;">
        <div class="shadow" style="height: 160px;margin-top: -80px; ">
            <div class="close"></div>
            <div class="succeed">
                <h2>温馨提示</h2>
                <p>恭喜你拼团<!--/试吃成功--></p>
                <h3 style="text-align:center;">本产品为自提产品，社区二次分拣<br/>
                    你所在小区暂无店铺，请您推荐店铺</h3>
                <p style="padding:0; height:40px; position:absolute; width:100%; bottom:0;">
                    <input type="button" value="去推荐" class="right"   onclick="window.location.href='__MODULE__/Recommend/index/'"/>
                    <input type="button" value="取消" class="left" id="close" />
                </p>
            </div>
        </div>
    </div>
</eq>

</body>
<script  src="__PUBLIC__/Wx/js/jquery-1.9.1.js" type="text/javascript"></script>
<script type="text/javascript">
    $('.hint .close').click(function(){
        $('.hint').css('display','none')
    });
    $('.hint .left').click(function(){
        $('.hint').css('display','none')
    });
    $('.hint02 .close').click(function(){
        $('.hint02').css('display','none')
    });
    $('.gz').click(function(){
        $('.page').css('display','block')
    });
    $('.hint03 .right').click(function(){
        $('.hint03').css('display','none')
        $('.page').css('display','block')
    });
    $('.hint03 .close').click(function(){
        $('.hint03').css('display','none')
    });
    $('.hint03 #close').click(function(){
        $('.hint03').css('display','none')
    });
    $('.page .close').click(function(){
        $('.page').css('display','none')
    });
</script>
</html>